package cn.qiba.sms.bo.common;

public class SmsResult {

    private String code;
    private String msg;

    public SmsResult() {
    }

    public SmsResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public SmsResult(E e) {
        this.code = e.getCode();
        this.msg = e.getMsg();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public enum E{
        SUCCESS("0000","操作成功"),
        ERROR("9999","操作失败"),
        INPUT("8888","参数不合法"),
        ;

        private String code;
        private String msg;

        E(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
